<div class="posts">
  <% articles.forEach(function(article){ %>
  <div class="article-item">
    <span class="article_hot"><span class="icon icon-fire"></span><i><%= article.pv || 0 %></i> </span>
    <a target="_blank" class="article_title" href="<%= article.path + article._id  %>"><%= article.title %></a>
    <span class="article_date"><%= article.created_at %></span>
    <% if (active === 'posts' || user.privilege == 1)  { %>
    <a href="<%= article.path + 'banner/' + article._id %>/edit" class="article_edit">编辑</a>
    <a href="javascript:;" data-url="/admin/<%= article._id  %>/remove" class="article_delete">删除</a>
    <% } else { %>
    <a href="<%= article.path + 'banner/' + article._id %>/edit" class="article_edit">编辑</a>
    <% } %>
  </div>
  <% }) %>
</div>